package com.example.friendfindertwo.data.helper;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBHelper extends SQLiteOpenHelper{
	private static final String DATABASE_NAME = "friendfinder.db";
	private static final int DATABASE_VERSION = 1;
	
	public DBHelper(Context context){
		super(context, DATABASE_NAME, null, DATABASE_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase database) {
		CategoryTable.onCreate(database);
		FriendTable.onCreate(database);
		EventTable.onCreate(database);
	}

	@Override
	public void onUpgrade(SQLiteDatabase database, int oldVersion, int newVersion) {
		CategoryTable.onUpgrade(database, oldVersion, newVersion);
		FriendTable.onUpgrade(database, oldVersion, newVersion);
		EventTable.onUpgrade(database, oldVersion, newVersion);	
	}
	
	

}
